﻿namespace B13_Ex01_3
{
    public class AdvancedRhombus
    {
        public static void Main()
        {
            int inputNumOfRows;
            string input;
            bool isCorrectInput;
            System.Console.WriteLine("Hello User! Please enter the number of rows you wish your rhombus to have: " + '\n');
            input = System.Console.ReadLine();
            isCorrectInput = int.TryParse(input, out inputNumOfRows);
            if (isCorrectInput)
            {
                if (inputNumOfRows > 0)
                {
                    if (inputNumOfRows % 2 == 0)
                    {
                        inputNumOfRows++;
                        B13_Ex1_2.BegginersRhombus.RhombusPrinter(inputNumOfRows);
                    }
                    else
                    {
                        B13_Ex1_2.BegginersRhombus.RhombusPrinter(inputNumOfRows);
                    }
                }
            }
            else
            {
                System.Console.WriteLine("The value you have entered is incorrect! this program will shut down! ");
                System.Console.ReadLine();
            }
        }
    }
}
